package com.gamex.findit.service.impl;

import java.util.List;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.gamex.findit.dao.CommonCodeMapper;
import com.gamex.findit.model.CommonCode;
import com.gamex.findit.service.CommonCodeService;

/**
 * 공통 서비스
 * @author james
 *
 */
@Service
public class CommonCodeServiceImpl implements CommonCodeService{
	private static final Logger logger = LoggerFactory.getLogger(CommonCodeServiceImpl.class);
	
	@Autowired CommonCodeMapper commonCodeMapper;
	
	@Override
	public List<CommonCode> getCommonCode(CommonCode commonCode) {
		List<CommonCode> result = null;
		try {
			result = commonCodeMapper.selectCommonCode(commonCode);
		} catch (Exception e) {
			logger.error(e.getMessage());
		}
		return result;
	}

}
